Loans API icon

Loans API

(0 reviews)

Lookup Services

Description

All of the Lookup services are following a caching mechanism. For each request, the data will be fetched from Object Store instead of calling Temenos API everytime. The Scheduler runs twice a day (every 12 hrs). This mechanism is used to decrease the load on sys-api.

resources/loans-sequence-Search%20Loans%20by%20loan%20id.drawio%20%287%29-130ed12c-55a7-4e6f-adb2-b6eb216fd1b0.png

Object Store Configuration

os:

  entry_ttl: "1"

  exp_interval: "1"

  keys:

    purposeFacility: "purposeFacilities"

    lendingProducts: "lendingProducts"

    insuranceCompany: "insuranceCompany"

    tmlList: "loansTmlList"

Scheduler Configuration

The unit is hours

scheduler:

  frequency: "12"

Error Handler

output application/json
{

    "Root":{

        "message_Type":"Response",

        "response_status":"Failed",

        "service_name": "Purpose Facility",

        "flow_name":"prc-implementation-purpose-facility-temenos-sub-flow",

        "correlationId": vars.requestHeaders.'x-correlation-id',

        "timestamp": now() as DateTime,

        "log_tracepoint": "EXCEPTION"

    },

    "header":{

        "channel_id": vars.requestHeaders.'x-channel-id',

        "Bank_Id": vars.requestHeaders.'x-bank-id',

        "User_Id": vars.requestHeaders.'x-user-id',

        "Customer_ID": vars.requestHeaders.'x-customer-id',

        "Sub_Channel_Id": vars.requestHeaders.'x-sub-channel-id' default null,

    },

    "log-Message":{

        "Message": error.errorType.asString,

        "Log_Level":"ERROR",

        "Payload": "Error": error.description,

        "Unique_ID": vars.requestHeaders.'x-customer-id',

        "Latency": ""

    },

    "System_Info":{

        "Host_machine":"",

        "Environment": p('mule.env'),

        "Source_System":vars.requestHeaders.'x-channel-id',

        "Target_System":"Temenos-T24-System",

        "Sender_IP":""

    }

}

resources/image%20%281%29-1f997886-f186-413d-8b5d-d314a43632b4.png


Reviews